CaptureSnapshotRequest

data class CaptureSnapshotRequest(computedStyles: List<String>, includePaintOrder: Boolean?, includeDOMRects: Boolean?)

Represents request frame that can be used with DOMSnapshot#captureSnapshot operation call.

Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

See also

Constructors

CaptureSnapshotRequest
Link copied to clipboard
fun CaptureSnapshotRequest(computedStyles: List<String>, includePaintOrder: Boolean? = null, includeDOMRects: Boolean? = null)

Properties

computedStyles
Link copied to clipboard
val computedStyles: List<String>
Whitelist of computed styles to return.
includeDOMRects
Link copied to clipboard
val includeDOMRects: Boolean? = null
Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
includePaintOrder
Link copied to clipboard
val includePaintOrder: Boolean? = null
Whether to include layout object paint orders into the snapshot.

Sources

jvm source
Link copied to clipboard